< previous page page_88 next page >

Page 88
Chapter Objectives
Learn about the code window
Learn about form events
Learn about different events for different controls
Sample Project Filename: \Chapter05\Events.vbp
Code Window
To write code that responds to an event, you first need to double-click one of the controls on your form or the form itself to display a code window. A code window is where you type in all the procedures and functions that make your application do something.
EXERCISE
Bringing Up a Code Window
1. Double-click on the form. Be sure not to double-click one of the controls.
2. You should see a code window similar to the one shown in Figure 5.1.
8160-0088a.gif
Figure 5.1
A code window.
analysis.gifA code window is where you will write all the code for your application.

The code window has several areas of note. The first is the title bar, which displays the project name and the module name. Next are the two combo boxes at the top of the window. The one on the left shows you the particular control or object youre writing code for, and the one on the right is the name of the specific event the code is for. The main part of the window is where you write your source code.

 
< previous page page_88 next page >

If you like this book, buy it!